#coding:utf-8
import os
import gevent.monkey
gevent.monkey.patch_all()
import multiprocessing
#监听端口：
bind = '0.0.0.0:8009'
#启动的进程数
workers = multiprocessing.cpu_count() * 2 + 1
worker_class = 'gunicorn.workers.ggevent.GeventWorker'
#
x_forwarded_for_header = 'X-FORWARDED-FOR'
#调试模式和日志
debug = True
loglevel = 'debug'
pidfile = 'log/gunicorn.pid'
logfile = 'log/debug.log'
#使用实例：
#gunicorn -c ./conf.py   run:app